/*
 * Copyright (c) 2019 Wormpex.com. All Rights Reserved.
 */

package com.sk.classloader;

/**
 * @author ke.su date: 2019-10-22 Time: 上午10:39
 */
public class Test1 {
    public static void main(String[] args) {
        Child1.getInstents();
        System.out.println(Child1.a);
        System.out.println(Child1.b);
    }
}

class Parent1 {
}

class Child1 extends Parent1 {
    static int a = 5;
    private static Child1 child1 = new Child1();

    private Child1() {
        a++;
        b++;
        System.out.println(a);
        System.out.println(b);
        System.out.println("------");
    }

    public  static Child1  getInstents() {
        return child1;
    }

    static int b = 6;

}